package cn.huanzi.qch.springbootmybatis.constant;

/**
 * @author keven
 * @date 2023-02-10 9:37 上午
 * @Description
 */
public class Constant {

    /**
     * 数据库备份的默认地址
     */
    public static final int SETTING_MYSQLDUMP_PATH = 410;


    /**
     * 数据库的bin目录地址
     */
    public static final int SETTING_MYSQL_BINPATH = 420;


    /**
     * 文件后缀
     */
    public static final String FILE_SUFFIX = ".sql";

    /*数据库的名字*/
    public static final String DATA_BASE_NAME = "teachingmanagement";

    /**
     * 判断操作系统类型、Linux|Windows
     */
    public static boolean isSystem(String osName) {
        Boolean flag = null;
        if (osName.startsWith("windows")) {
            flag = true;
        } else if (osName.startsWith("linux")) {
            flag = false;
        }
        return flag;
    }


}
